package com.sls.game.dao.maxshu;

import java.util.List;

import com.sls.game.page.Pagination;
import com.sls.game.pojo.maxshu.MaxshuAreaServer;

public interface MaxshuAsDAO {

	/**
	 * 插入区服信息
	 * 
	 * @param as
	 */
	public void insertAreaServer(MaxshuAreaServer as);

	/**
	 * 通过产品编号，区域名称，服务器名称查询
	 * 
	 * @param as
	 * @return
	 */
	public List<MaxshuAreaServer> queryByProIdAndASName(MaxshuAreaServer as);

	/**
	 * 分页查询
	 * 
	 * @param as
	 * @return
	 */
	public Pagination<MaxshuAreaServer> queryPage(MaxshuAreaServer as);

	/**
	 * 查询同一产品编号下的区服列表
	 * 
	 * @param productId
	 * @return
	 */
	public List<MaxshuAreaServer> queryByProductId(String productId);

	/**
	 * 查询同一产品编号下的区域名称
	 * 
	 * @param productId
	 * @return
	 */
	public List<String> queryAreaNameByProductId(String productId);

	/**
	 * 根据产品id删除
	 * 
	 * @param productId
	 */
	public void deleteByProductId(String productId);
	
}
